package com.zzyl.common.utils;

public class UserThreadLocal {
    private static ThreadLocal<Long> userId = new ThreadLocal<>();

    public static void setUserId(Long id){
        userId.set(id);
    }

    public static Long getUserId(){
        return userId.get();
    }

    public static void remove(){
        userId.remove();
    }


}
